package com.usian.model.comment.dtos;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
public class CommentSaveDto {

    /**
     * 文章id
     */

    @NotNull(message = "参数错误")
    private Long articleId;

    /**
     * 评论内容
     */
    @Length(min = 8,max = 140,message="评论内容为8-140字")
    private String content;
}
